﻿@model AllCategoriesModel
@using Nop.Web.Models.Catalog;

@foreach( var category in Model.CategoryModels)
{
    if (category.SubCategories == null ||
        category.SubCategories.Count == 0)
    {
        continue;
    }
    <div class="product-group-wraper">
        <div class='homeLine'>
            <div class="group-title">
                <h2><a href="@Url.RouteUrl("Category", new {category.SeName })" class="utm" title="@category.PictureModel.Title">
                        @category.Name</a></h2>
            </div>
        </div>
        <div class="sub-category-grid">
            @foreach (CategoryModel.SubCategoryModel item in category.SubCategories)
            {
                <div class="item-box">
                    <div class="sub-category-item">
                        @*<h2 class="category-title">
                            <a href="@Url.RouteUrl("Category", new {item.SeName})" title="@item.PictureModel.Title">
                                @item.Name</a>
                        </h2>*@
                        <div class="picture">
                            <a href="@Url.RouteUrl("Category", new {item.SeName})" title="@item.PictureModel.Title">
                                <img alt="@item.PictureModel.AlternateText" src="@item.PictureModel.ImageUrl"
                                     title="@item.PictureModel.Title" /></a>
                        </div>
                    </div>
                </div>
            }
        </div>
    </div>
}

@*<div class="product-group-wraper">
    <div class='homeLine'>
        <div class="group-title">
            <h2><a class="utm" href="@Url.RouteUrl("ManufacturerList")">
                    @T("Manufacturers")
                </a>
            </h2>
        </div>
    </div>
    <div class="manufacturer-grid">
        @foreach (var item in Model.Manufacturers)
        {
            <div class="item-box">
                <div class="manufacturer-item">
                    <h2 class="man-title">
                        <a href="@Url.RouteUrl("Manufacturer", new { SeName = item.SeName })" title="@item.PictureModel.Title">
                            @item.Name</a>
                    </h2>
                    <div class="picture">
                        <a href="@Url.RouteUrl("Manufacturer", new { SeName = item.SeName })" title="@item.PictureModel.Title">
                            <img alt="@item.PictureModel.AlternateText" src="@item.PictureModel.ImageUrl" title="@item.PictureModel.Title" /></a>
                    </div>
                </div>
            </div>
        }
    </div>
</div>*@